<div class="wrap">

<h2>下载管理</h2>

<table class="widefat">
    <thead>
    <tr>

    <th scope="col"><div style="text-align: center">ID</div></th>
    <th scope="col">下载标题</th>
    <th scope="col">添加时间</th>

    <th scope="col"></th>
    <th scope="col"></th>

    </tr>
    </thead>
    <tbody id="the-list">
    <?php foreach ($articles as $article): ?>
    <tr id='post-5' class='alternate author-self status-publish'>

        <th scope="row" style="text-align: center"><?php echo $article->getId() ?></th>
                <td><?php echo $article->getTitle(); ?></td>
                <td><?php echo date('Y-m-d H:i',$article->getAddTime()); ?></td>
                <td><a href='<?php echo url_for('admin/m/index/sort_edit/id/'.$article->getId()) ?>/' class='edit'>修改</a></td>
                <td><a onclick="if (!confirm('确认删除吗')) return false;" href="<?php echo url_for('admin/m/index/sort_del/id/'.$article->getId()) ?>/" class='delete'>删除</a></td>
    </tr>
    <?php endforeach; ?>
    </tbody>
</table>

<?php echo $pager->GetNavigation() ?>
<p><a href="<?php echo url_for('admin/m/index/sort_edit/') ?>">添加内容</a></p>

</div>